<?php
namespace app\admin\controller;

use app\admin\model\AdminUserModel;
use app\admin\model\AuthRuleModel;
use think\Db;
use think\Session;

class Index extends Admin
{
    /*
     * 主页框架
     */
    public function index()
    {
        //菜单
        $authRuleModel = new AuthRuleModel();
        $menu = $authRuleModel->getMenu(Session::get('user_auth.group_id'));

        $this->view->assign('menu', $menu);

        return $this->view->fetch();
    }

    /**
     * 欢迎页面
     */
    public function welcome()
    {
        return $this->view->fetch();
    }

}
